# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-fann2
pkgver=1.1.2
pkgrel=0
pkgdesc="Python bindings for Fast Artificial Neural Networks 2.2.0"
url="https://github.com/FutureLinkCorporation/fann2"
arch="all"
license="LGPL-2.1-only"
depends="python3"
makedepends="py3-setuptools fann-dev swig python3-dev"
subpackages="$pkgname-dev"
source="https://pypi.python.org/packages/source/f/fann2/fann2-$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/fann2-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="78cffa7a6a91d9c500852f398aad173c8b9718545070e6b780d71bc94f891161e2211e0683548dee944f931a8cdb2695ca28f4eae994b4009ae5c12efbc6259c  fann2-1.1.2.tar.gz"
